package com.gp.learn.ssm.base.system.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import com.gp.learn.ssm.base.core.mybaits.base.entity.AbstractEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * 系统用户-登录账号
 * @author gp
 * @since 2020-07-27
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("base_account")
@ApiModel(value="BaseAccount对象", description="系统用户-登录账号")
public class BaseAccount extends AbstractEntity {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "accountId", type = IdType.ID_WORKER)
    private Long accountId;

    @ApiModelProperty(value = "用户Id")
    @TableField("userId")
    private Long userId;

    @ApiModelProperty(value = "标识：手机号、邮箱、 用户名、或第三方应用的唯一标识")
    private String account;

    @ApiModelProperty(value = "密码凭证：站内的保存密码、站外的不保存或保存token）")
    private String password;

    private String domain;

    @ApiModelProperty(value = "登录类型:password-密码、mobile-手机号、email-邮箱、weixin-微信、weibo-微博、qq-等等")
    @TableField("accountType")
    private String accountType;

    @TableField("registerIp")
    private String registerIp;

    @TableField("nickName")
    private String nickName;

    private String avatar;

    private Integer status;


}
